package com.isccp.efi;

import com.isccp.efi.service.PackagecardService;
import com.isccp.efi.service.TDpcaEfi074Service;
import com.isccp.efi.service.TDpcaEfi078Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private TDpcaEfi078Service  tDpcaEfi078Service;

    @Resource
    private TDpcaEfi074Service tDpcaEfi074Service;


    @GetMapping("test2")
    public String test2(String vendor){
        tDpcaEfi074Service.syncData();
        return "ok";
    }

    @GetMapping("test1")
    public String test1(String vendor){
        tDpcaEfi078Service.syncData(vendor);
        return "ok";
    }
 }
